<template>
	<view id="main">
		<text class="header">
			{{danyuan}}
		</text>
		<view class="box">
			<view v-for="(arr,index) in arr" class="item">
				<text>
					{{arr.num}}
				</text>
				<text>
					{{arr.ifcheck?'已巡检':'未巡检'}}
				</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				danyuan: "一栋一单元",
				arr: [{
						"num": "101",
						"ifcheck": 0
					},
					{
						"num": "102",
						"ifcheck": 1
					},
					{
						"num": "103",
						"ifcheck": 0
					},
					{
						"num": "103",
						"ifcheck": 0
					},
					{
						"num": "103",
						"ifcheck": 0
					}
				]
			}
		}
	}
</script>

<style lang="less" scoped>
	.header {
		border-left: solid 6rpx #157ef9;
		padding-left: 24rpx;
	}

	#main {
		padding: 28rpx;
		background-color: #f6f7f8;
	}
	.box{
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		margin-top: 20rpx;
	}
	.item {
		background-color: #ffffff;
		height: 162rpx;
		width: 162rpx;
		border-radius: 15rpx;
		margin-bottom: 20rpx;
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
		align-items: center;
	}
	.item>text{
		text-align: center;
		height: 50%;
		line-height: 80rpx;
	}
</style>
